// TOWN SPECIAL ENCOUNTERS
//    Town 74: Lair of Drakos

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 200;
short last_abil;
short counter = 0;
short set_ter = 0;
short set_ter2 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,);
//	add_range_to_group(,,groupn);

	set_name(7400,"Drakos Hatchling");
	set_name(7401,"Drakos Hatchling");
	set_new_abil(7400,36);
	set_new_abil(7401,36);

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if ((set_ter == 0) && (gf(74,12) > 0)) {
		set_ter = 1;
		set_terrain(0,39,38,0);
		set_terrain(0,39,40,0);
		set_terrain(0,39,42,0);
		
		}

break;

beginstate 10;
	if (get_terrain(0,19,42) != 0) {
		set_terrain(0,19,42,0);
		play_sound(20);
		print_str_color("A stone slides and clicks under your feet.",2);
		print_str_color("  A nearby pillar slides down into the floor.",2);
		}
break;

beginstate 11;
	if (get_terrain(0,24,27) != 0) {
		set_terrain(0,24,27,0);
		play_sound(20);
		print_str_color("A stone slides and clicks under your feet.",2);
		print_str_color("  A nearby pillar slides down into the floor.",2);
		}
break;

beginstate 12;
	if (get_terrain(0,31,21) == 0) {
		set_terrain(0,31,21,79);
		play_sound(20);
		print_str_color("A stone slides and clicks under your feet.",2);
		print_str_color("  A nearby pillar slides out of the floor.",2);
		}
break;

beginstate 13;
	if (get_terrain(0,31,23) == 0) {
		set_terrain(0,31,23,79);
		play_sound(20);
		print_str_color("A stone slides and clicks under your feet.",2);
		print_str_color("  A nearby pillar slides out of the floor.",2);
		}
break;

beginstate 14;
	if (get_terrain(0,31,25) == 0) {
		set_terrain(0,31,25,79);
		play_sound(20);
		print_str_color("A stone slides and clicks under your feet.",2);
		print_str_color("  A nearby pillar slides out of the floor.",2);
		}
break;

beginstate 15;
	if (get_terrain(0,33,37) != 0) {
		set_terrain(0,33,37,0);
		play_sound(20);
		print_str_color("A stone slides and clicks under your feet.",2);
		print_str_color("  A nearby pillar slides down into the floor.",2);
		}
break;

//	print_str("");
//	set_terrain_string_range("",1);
//	set_terrain_string_range("The sign says - .",1);

